package com.wzu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@TableName("payment")
public class Payment implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id; // 缴费ID
    private String ruralCardNo; // 参合证号
    private String invoiceNo; // 参合发票号
    private BigDecimal amount; // 缴费金额
    private String paymentYear; // 缴费年度
    private Date paymentTime; // 缴费时间
    private Long operatorId; // 操作员ID
    private String operatorName; // 操作员姓名
    private String cardId; // 身份证号
    private String insuredName; // 参合人姓名
    private String areaCode; // 行政区域编码

    public Payment() {}
    public Payment(Long id, String ruralCardNo, String invoiceNo, BigDecimal amount, String paymentYear, Date paymentTime, Long operatorId, String operatorName, String cardId, String insuredName, String areaCode) {
        this.id = id;
        this.ruralCardNo = ruralCardNo;
        this.invoiceNo = invoiceNo;
        this.amount = amount;
        this.paymentYear = paymentYear;
        this.paymentTime = paymentTime;
        this.operatorId = operatorId;
        this.operatorName = operatorName;
        this.cardId = cardId;
        this.insuredName = insuredName;
        this.areaCode = areaCode;
    }
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    public String getRuralCardNo() { return ruralCardNo; }
    public void setRuralCardNo(String ruralCardNo) { this.ruralCardNo = ruralCardNo; }
    public String getInvoiceNo() { return invoiceNo; }
    public void setInvoiceNo(String invoiceNo) { this.invoiceNo = invoiceNo; }
    public BigDecimal getAmount() { return amount; }
    public void setAmount(BigDecimal amount) { this.amount = amount; }
    public String getPaymentYear() { return paymentYear; }
    public void setPaymentYear(String paymentYear) { this.paymentYear = paymentYear; }
    public Date getPaymentTime() { return paymentTime; }
    public void setPaymentTime(Date paymentTime) { this.paymentTime = paymentTime; }
    public Long getOperatorId() { return operatorId; }
    public void setOperatorId(Long operatorId) { this.operatorId = operatorId; }
    public String getOperatorName() { return operatorName; }
    public void setOperatorName(String operatorName) { this.operatorName = operatorName; }
    public String getCardId() { return cardId; }
    public void setCardId(String cardId) { this.cardId = cardId; }
    public String getInsuredName() { return insuredName; }
    public void setInsuredName(String insuredName) { this.insuredName = insuredName; }
    public String getAreaCode() { return areaCode; }
    public void setAreaCode(String areaCode) { this.areaCode = areaCode; }
    @Override
    public String toString() {
        return "Payment{" +
                "id=" + id +
                ", ruralCardNo='" + ruralCardNo + '\'' +
                ", invoiceNo='" + invoiceNo + '\'' +
                ", amount=" + amount +
                ", paymentYear='" + paymentYear + '\'' +
                ", paymentTime=" + paymentTime +
                ", operatorId=" + operatorId +
                ", operatorName='" + operatorName + '\'' +
                ", cardId='" + cardId + '\'' +
                ", insuredName='" + insuredName + '\'' +
                ", areaCode='" + areaCode + '\'' +
                '}';
    }
} 